package com.istock.union.user.model;

import java.io.Serializable;
import java.util.Date;

public class OperLogInfo implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * VARCHAR(24) 必填<br>
     * 
     */
    private String id;

    /**
     * VARCHAR(50) 默认值[]<br>
     * 菜单名称
     */
    private String menuName;

    /**
     * VARCHAR(50) 默认值[]<br>
     * 功能名称
     */
    private String functionName;

    /**
     * VARCHAR(100) 默认值[]<br>
     * 方法名称
     */
    private String method;

    /**
     * VARCHAR(50) 默认值[]<br>
     * 登录账号
     */
    private String operName;

    /**
     * VARCHAR(50) 默认值[]<br>
     * 部门名称
     */
    private String deptCode;

    /**
     * VARCHAR(255) 默认值[]<br>
     * 请求URL
     */
    private String operUrl;

    /**
     * VARCHAR(30) 默认值[]<br>
     * 主机地址
     */
    private String operIp;

    /**
     * VARCHAR(3000) 默认值[]<br>
     * 请求参数
     */
    private String operParam;

    /**
     * DECIMAL(5) 默认值[0]<br>
     * 操作状态 1正常 2异常
     */
    private Integer status;

    /**
     * VARCHAR(2000) 默认值[]<br>
     * 错误消息
     */
    private String errorMsg;

    /**
     * TIMESTAMP(19)<br>
     * 操作时间
     */
    private Date operTime;

    /**
     * VARCHAR(24) 必填<br>
     * 获得 
     */
    public String getId() {
        return id;
    }

    /**
     * VARCHAR(24) 必填<br>
     * 设置 
     */
    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    /**
     * VARCHAR(50) 默认值[]<br>
     * 获得 菜单名称
     */
    public String getMenuName() {
        return menuName;
    }

    /**
     * VARCHAR(50) 默认值[]<br>
     * 设置 菜单名称
     */
    public void setMenuName(String menuName) {
        this.menuName = menuName == null ? null : menuName.trim();
    }

    /**
     * VARCHAR(50) 默认值[]<br>
     * 获得 功能名称
     */
    public String getFunctionName() {
        return functionName;
    }

    /**
     * VARCHAR(50) 默认值[]<br>
     * 设置 功能名称
     */
    public void setFunctionName(String functionName) {
        this.functionName = functionName == null ? null : functionName.trim();
    }

    /**
     * VARCHAR(100) 默认值[]<br>
     * 获得 方法名称
     */
    public String getMethod() {
        return method;
    }

    /**
     * VARCHAR(100) 默认值[]<br>
     * 设置 方法名称
     */
    public void setMethod(String method) {
        this.method = method == null ? null : method.trim();
    }

    /**
     * VARCHAR(50) 默认值[]<br>
     * 获得 登录账号
     */
    public String getOperName() {
        return operName;
    }

    /**
     * VARCHAR(50) 默认值[]<br>
     * 设置 登录账号
     */
    public void setOperName(String operName) {
        this.operName = operName == null ? null : operName.trim();
    }

    /**
     * VARCHAR(50) 默认值[]<br>
     * 获得 部门名称
     */
    public String getDeptCode() {
        return deptCode;
    }

    /**
     * VARCHAR(50) 默认值[]<br>
     * 设置 部门名称
     */
    public void setDeptCode(String deptCode) {
        this.deptCode = deptCode == null ? null : deptCode.trim();
    }

    /**
     * VARCHAR(255) 默认值[]<br>
     * 获得 请求URL
     */
    public String getOperUrl() {
        return operUrl;
    }

    /**
     * VARCHAR(255) 默认值[]<br>
     * 设置 请求URL
     */
    public void setOperUrl(String operUrl) {
        this.operUrl = operUrl == null ? null : operUrl.trim();
    }

    /**
     * VARCHAR(30) 默认值[]<br>
     * 获得 主机地址
     */
    public String getOperIp() {
        return operIp;
    }

    /**
     * VARCHAR(30) 默认值[]<br>
     * 设置 主机地址
     */
    public void setOperIp(String operIp) {
        this.operIp = operIp == null ? null : operIp.trim();
    }

    /**
     * VARCHAR(3000) 默认值[]<br>
     * 获得 请求参数
     */
    public String getOperParam() {
        return operParam;
    }

    /**
     * VARCHAR(3000) 默认值[]<br>
     * 设置 请求参数
     */
    public void setOperParam(String operParam) {
        this.operParam = operParam == null ? null : operParam.trim();
    }

    /**
     * DECIMAL(5) 默认值[0]<br>
     * 获得 操作状态 1正常 2异常
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * DECIMAL(5) 默认值[0]<br>
     * 设置 操作状态 1正常 2异常
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * VARCHAR(2000) 默认值[]<br>
     * 获得 错误消息
     */
    public String getErrorMsg() {
        return errorMsg;
    }

    /**
     * VARCHAR(2000) 默认值[]<br>
     * 设置 错误消息
     */
    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg == null ? null : errorMsg.trim();
    }

    /**
     * TIMESTAMP(19)<br>
     * 获得 操作时间
     */
    public Date getOperTime() {
        return operTime;
    }

    /**
     * TIMESTAMP(19)<br>
     * 设置 操作时间
     */
    public void setOperTime(Date operTime) {
        this.operTime = operTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", menuName=").append(menuName);
        sb.append(", functionName=").append(functionName);
        sb.append(", method=").append(method);
        sb.append(", operName=").append(operName);
        sb.append(", deptCode=").append(deptCode);
        sb.append(", operUrl=").append(operUrl);
        sb.append(", operIp=").append(operIp);
        sb.append(", operParam=").append(operParam);
        sb.append(", status=").append(status);
        sb.append(", errorMsg=").append(errorMsg);
        sb.append(", operTime=").append(operTime);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        OperLogInfo other = (OperLogInfo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getMenuName() == null ? other.getMenuName() == null : this.getMenuName().equals(other.getMenuName()))
            && (this.getFunctionName() == null ? other.getFunctionName() == null : this.getFunctionName().equals(other.getFunctionName()))
            && (this.getMethod() == null ? other.getMethod() == null : this.getMethod().equals(other.getMethod()))
            && (this.getOperName() == null ? other.getOperName() == null : this.getOperName().equals(other.getOperName()))
            && (this.getDeptCode() == null ? other.getDeptCode() == null : this.getDeptCode().equals(other.getDeptCode()))
            && (this.getOperUrl() == null ? other.getOperUrl() == null : this.getOperUrl().equals(other.getOperUrl()))
            && (this.getOperIp() == null ? other.getOperIp() == null : this.getOperIp().equals(other.getOperIp()))
            && (this.getOperParam() == null ? other.getOperParam() == null : this.getOperParam().equals(other.getOperParam()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getErrorMsg() == null ? other.getErrorMsg() == null : this.getErrorMsg().equals(other.getErrorMsg()))
            && (this.getOperTime() == null ? other.getOperTime() == null : this.getOperTime().equals(other.getOperTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getMenuName() == null) ? 0 : getMenuName().hashCode());
        result = prime * result + ((getFunctionName() == null) ? 0 : getFunctionName().hashCode());
        result = prime * result + ((getMethod() == null) ? 0 : getMethod().hashCode());
        result = prime * result + ((getOperName() == null) ? 0 : getOperName().hashCode());
        result = prime * result + ((getDeptCode() == null) ? 0 : getDeptCode().hashCode());
        result = prime * result + ((getOperUrl() == null) ? 0 : getOperUrl().hashCode());
        result = prime * result + ((getOperIp() == null) ? 0 : getOperIp().hashCode());
        result = prime * result + ((getOperParam() == null) ? 0 : getOperParam().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getErrorMsg() == null) ? 0 : getErrorMsg().hashCode());
        result = prime * result + ((getOperTime() == null) ? 0 : getOperTime().hashCode());
        return result;
    }
}